package com.michael.study.jetpack.network.api

import com.michael.study.jetpack.bean.User
import com.michael.study.jetpack.bean.UserInfo
import com.michael.study.jetpack.network.ApiResult
import com.michael.study.jetpack.network.body.LoginBody
import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST

/**
 * Description:
 *
 * Created by liuguoquan on 2020/3/19 16:33.
 */
interface LoginApi {
    /**
     * 登录
     */
    @POST("api/auth/login")
    fun login(@Body body: LoginBody): Call<ApiResult<UserInfo>>
}